package com.jiyun.play.controller;


import com.domain.OrderDetails;
import com.jiyun.play.service.impl.OrderDetailsServiceImpl;
import com.spyx.common.result.Result;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author li
 * @since 2024-12-25
 */
@RestController
@RequestMapping("/order-details")
public class OrderDetailsController {

    private final OrderDetailsServiceImpl orderDetailsService;

    public OrderDetailsController(OrderDetailsServiceImpl orderDetailsService){
        this.orderDetailsService = orderDetailsService;
    }

    @RequestMapping("list")

    public  Result list(){
        return Result.ok(orderDetailsService.list());
    }





}
